package com.future.hedongjun.mine.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.view.View;

import com.amap.api.services.core.PoiItem;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.future.hedongjun.R;

import java.util.List;


/**
 * Created by gxcheng on 2017/9/16.
 */

public class DeliveryAddressSelectAdapter extends BaseQuickAdapter<PoiItem,BaseViewHolder> {

    public DeliveryAddressSelectAdapter(@LayoutRes int layoutResId, @Nullable List<PoiItem> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PoiItem item) {
        helper.setText(R.id.location_address_title_tv,item.getTitle());
        helper.setText(R.id.location_address_tv,item.getProvinceName()+item.getCityName()+item.getAdName()+item.getSnippet());

    }

}
